﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TeamSystem.Data.DataGenerator;

namespace Chaliy.DbPro.Generators.Tests
{
	[TestClass]
	public class LoremTextGeneratorTests
	{
		[TestMethod]
		public void TestCreateAuthor()
		{
			// TODO: Refactor method to make logic 
			// of the CreateAuthor accessible from here
			// Do not fogot check results of the CreateAuthor 
			LoremTextGenerator textGenerator = new LoremTextGenerator();
			textGenerator.MinimumLength = 0;
			textGenerator.MaximumLength = 40;

			// One of the next two calls will implictly call CreateAuthor
			textGenerator.Initialize(new GeneratorInit(null));
			textGenerator.GenerateNextValues();
		}
	}
}
